package structural.proxy;

/**
 * 游戏者
 *
 * @author wangjinqiang
 * @date 2019-08-05
 */
public class GamePlayer implements IGamePlayer {
    private String name;

    public GamePlayer(String name) {
        this.name = name;
    }

    @Override
    public void login(String username, String password) {
        System.out.println("登录名为" + username + "的用户" + this.name + "登录成功! ");
    }

    @Override
    public void killBoss() {
        System.out.println(this.name + "在打怪@");
    }

    @Override
    public void upgrade() {
        System.out.println(this.name + "又升了一级!");
    }
}
